package com.cet.lxf.collection.test04;

import java.util.HashMap;
import java.util.Map;

/**
 * @program: algorithm
 * @description:
 * @author: 陈恩涛
 * @create: 2021-08-06 10:50
 **/
public class Main {
    public static void main(String[] args) {
        Map<String, Object> map = new HashMap<>(16);
        String key1 = "a";
        map.put(key1, 123);

        String key2 = new String("a");
        System.out.println(map.get(key2));

        System.out.println(key1 == key2);
        System.out.println(key1.equals(key2));

        System.out.println(map.size());
    }
}
